﻿package {
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import hunterCommonlib.core.HApplication;
	import hunterCommonlib.ui.tip.Tip;
	import IcoSample;
	import xiaoneiAPI.Test;
	/**
	* ...
	* @author Default
	*/
	public class Demo extends MovieClip {
		public function Demo() {
			super();
			HApplication.application = this;
			var ico:IcoSample = new IcoSample();
			var tip:Tip = new Tip();
			tip.addChild(ico);
			addChild(tip);
			tip.followMouse = true;
			trace(HApplication.application);
			stage.addEventListener(MouseEvent.MOUSE_MOVE, updateHandler);
		}
		private function updateHandler(e:MouseEvent):void {
			e.updateAfterEvent();
		}
		
	}
	
}